﻿<%@ Control Language="C#" AutoEventWireup="true" Codebehind="ArchivedList.ascx.cs"
    Inherits="NCS.Module.CMS.Admin.WorkFlow.ArchivedList" %>
<%@ Register Assembly="NCS.Library" Namespace="NCS.Library.Controls"
    TagPrefix="cc1" %>
<%@ Register Assembly="System.Web.Extensions" Namespace="System.Web.UI" TagPrefix="asp" %>
<table id="Table1" align="center" cellpadding="3" cellspacing="0" width="100%">   
    <tr>
        <td colspan="2">
<asp:UpdatePanel ID="uppanelArchived" runat="server" UpdateMode="Conditional"
    RenderMode="Inline">
    <triggers>
        <asp:asyncpostbacktrigger ControlID="dropZones" EventName="SelectedIndexChanged" />
        <asp:asyncpostbacktrigger ControlID="dtgArchiveList" EventName="RowCommand" />
    </triggers>
    <contenttemplate><asp:Label id="lblUpdateStatus" runat="server" Font-Bold="True" ForeColor="Blue"></asp:Label>
            <table width="100%" cellpadding=0 cellspacing=0>
                <tr>
                    <td width="80">
                        <b>Chuyên mục</b></td>
                    <td>
                        <asp:DropDownList ID="dropZones" runat="server" AutoPostBack="True" Width="480px" OnSelectedIndexChanged="dropZones_SelectedIndexChanged">
                        </asp:DropDownList></td>
                </tr>
                <tr>
                    <td colspan="2">
                        <cc1:GridView ID="dtgArchiveList" runat="server" AllowPaging="True" AutoGenerateColumns="False"
                            PageSize="15" Width="100%" OnRowCommand="dtgArchiveList_RowCommand" OnRowDataBound="dtgArchiveList_RowDataBound">
                            <AlternatingRowStyle CssClass="Grid_Raw2" />
                            <RowStyle CssClass="Grid_Raw1" />
                            <HeaderStyle Font-Bold="True" CssClass="Grid_Top"></HeaderStyle>
                            <Columns>
                                <asp:BoundField HeaderText="ID" DataField="Content_ID" Visible="False" HeaderStyle-Width="5%" />
                                <asp:TemplateField HeaderText="Tên bài">
                                    <itemtemplate>
							<asp:HyperLink id="lnkHeadline" runat="server"></asp:HyperLink>
							</itemtemplate>
                                </asp:TemplateField>
                                <asp:TemplateField HeaderStyle-HorizontalAlign="Center" HeaderStyle-Width="150px"
                                    HeaderText="Thao tác" ItemStyle-HorizontalAlign="Center">
                                    <itemtemplate>
							        <asp:Button id="Button1" runat="server" CommandName="deploywaiting" CommandArgument='<%# Eval("Content_ID") %>' Text="Gửi lên" CssClass="Button"></asp:Button> 
							        <asp:Button ID="Button2" runat="server" CommandArgument='<%# Eval("Content_ID") %>'
								        CommandName="editcontent" CssClass="Button" Text="Sửa" /> 
							        <asp:Button ID="cmdDel" runat="server" CommandArgument='<%# Eval("Content_ID") %>'
								    CommandName="deletecontent" CssClass="Button" Text="Xóa" /> 
						        </itemtemplate>
                                </asp:TemplateField>
                            </Columns>
                        </cc1:GridView>
                    </td>
                </tr>
            </table>
            </contenttemplate>
            </asp:UpdatePanel>
        </td>
    </tr>
</table>
